package com.sy.controller;

import com.sy.entity.ClassName;

import com.sy.entity.Grade;
import com.sy.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author:cxl
 * @Date: 2021/10/12 0012 19:07
 */
@RestController
public class GradeController {
    @Autowired
    private GradeService gradeService;

    @RequestMapping(value = "grade", method = RequestMethod.GET)
    public List<String> getAllClass() {
        return gradeService.getAllGrade();
    }
}
